<%@ page import="com.zhiyou100.www.bbs.dao.TableUserDao" %>
<%@ page import="com.zhiyou100.www.bbs.entityclass.TableUser" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: yang
  Date: 2020/6/6
  Time: 8:36 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <link rel="stylesheet" href="/bbs/css/index.css">
    <title>明星用户</title>
</head>
<body>
<%
    out.write("<table class=\"starUserTable\">");
    // 拼一个table
    TableUserDao tableUserDao = new TableUserDao();
    out.write("<tr><td>姓名</td><td>积分</td></tr>");
    ArrayList<TableUser> all = tableUserDao.getAll();
    for (TableUser tableUser : all) {
        out.write("<tr><td>"
                + tableUser.getUserRealName()
                + "</td><td>"
                + tableUser.getUserScore()
                + "</td></tr>");
    }
    out.write("</table>");
%>
</body>
</html>
